package com.springCloud.controller;

import com.springCloud.domain.Message;
import com.springCloud.service.ProviderService;
import io.swagger.annotations.Api;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * 服务提供者控制器
 * @author zhu
 * @date 2021/05/27 21:37
 * @version 1.0
 */
@Slf4j
@RestController
@RequestMapping("/provider")
@Api(value = "服务提供者控制器")
public class ProviderController {

    @Resource
    private ProviderService providerService;

    /**
     * 搜索服务
     * @return 搜索结果
     */
    @RequestMapping(value ="/searchService", method= RequestMethod.GET)
    public Message searchService() {
        return providerService.searchService();
    }

}
